*** REPLICATION TOOLKIT ***

* AUTHORS: CIMINELLI DUVAL FURCERI 

* ARTICLE: EMPLOYMENT PROTECTION DEREGULATION AND LABOR SHARES IN ADVANCED ECONOMIES 

* JOURNAL: REVIEW OF ECONOMICS AND STATISTICS

* OUTPUT: FIGURE E1 (ONLINE APPENDIX)

***************************

cd ""

use "DTA files/Dataset", clear

global start = 1970
global end = 2015

**************** GLOBAL DECLINE OF LABOR SHARE *******************

* Year dummies 
local yr = $start + 1
forvalues i=`yr'/$end {
gen d_y`i' = 0
replace d_y`i' = 1 if year == `i'
}
global year_dummies d_y*

* Regress labor share on year dummies, country fixed effects, and country-industry fixed effects
xtset id_cross_section year
gen a = 100*lab/va
quietly xtreg a $year_dummies, fe
estimates store coefficients

* Graph
coefplot (coefficients, label(Unweighted)), keep($year_dummies) levels(95) vert recast(connected) graphregion(color(white)) xlabel(5 "1975" 10 "1980" 15 "1985" 20 "1990" 25 "1995" 30 "2000" 35 "2005" 40 "2010" 45 "2015", angle(60)) yline(0, lcolor(black))
graph export "Figures/E1.png", replace
